package edu.gatech.ors.mrsim.core.impl;

import java.util.HashMap;

import org.apache.log4j.Logger;

import edu.gatech.ors.mrsim.io.logging.Logging;

public class HDFSNameNode extends GenericNode {
	protected HashMap<String, String[]> fileLocations;
	public final static String FILES = "FILES";
	private final static Logger LOGGER = Logging.getInstance().getClassLogger(HDFSNameNode.class);

	public HDFSNameNode(String ID) {
		super(ID);
		fileLocations = new HashMap<String, String[]>();
	}

	public void addFileLocations(String file, String[] locations) {
		fileLocations.put(file, locations);
	}

	public boolean hasFile(String file) {
		return fileLocations.containsKey(file);
	}

	public String[] getFileLocation(String file) {
		return fileLocations.get(file);
	}

}
